/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service.impl;

import dao.impl.ContendorDaoImpl;
import entity.Contendor;
import java.util.List;
import service.ContendorService;

/**
 *
 * @author USER
 */
public class ContendorServiceImpl implements ContendorService {

    private ContendorDaoImpl ContendorDaoImpl;

    public void setContendorDaoImpl(ContendorDaoImpl ContendorDaoImpl) {
        this.ContendorDaoImpl = ContendorDaoImpl;
    }

    @Override
    public Integer insertar(Contendor Contendor) {
        Integer result = ContendorDaoImpl.insertar(Contendor);
        return result;
    }

    @Override
    public void actualizar(Contendor Contendor) {
        ContendorDaoImpl.actualizar(Contendor);
    }
    
    @Override
    public void pasarRonda(Double idtor, Double idcon, Integer codGanador) {
        ContendorDaoImpl.pasarRonda(idtor,idcon,codGanador);
    }

    @Override
    public void eliminar(Double id) {
        ContendorDaoImpl.eliminar(id);
    }

    @Override
    public List<Contendor> buscarTodos() {
        List<Contendor> list = ContendorDaoImpl.buscarTodos();
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel1(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel1(id);
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel2(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel2(id);
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel3(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel3(id);
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel4(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel4(id);
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel5(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel5(id);
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel6(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel6(id);
        return list;
    }
    
    @Override
    public List<Contendor> buscarNivel7(Double id) {
        List<Contendor> list = ContendorDaoImpl.buscarNivel7(id);
        return list;
    }

    @Override
    public List<Contendor> buscar(Contendor Contendor) {
        List<Contendor> list = ContendorDaoImpl.buscar(Contendor);
        return list;
    }

    @Override
    public List<Contendor> buscarPorNombre(String nombre) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Boolean autenticar(String correo, String password) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Contendor buscarPorId(Double id) {
        Contendor Contendor = ContendorDaoImpl.buscar(id);
        return Contendor;
    }
}
